package com.qfmy.model.entity.wallpaper;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/11/26
 * @description 壁纸实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Wallpaper {
    @Schema(description = "壁纸ID")
    private Integer id;

    @Schema(description = "壁纸标题")
    private String title;

    @Schema(description = "壁纸图片地址")
    private String imageUrl;

    @Schema(description = "所属分类ID（关联wallpaper_category表）")
    private Integer categoryId;

    @Schema(description = "发布者ID（关联user表）")
    private Integer publisherId;

    @Schema(description = "评分（如4.5）")
    private double score;

    @Schema(description = "参与评分的人数")
    private Integer scoreCount;

    @Schema(description = "壁纸摘要")
    private String summary;

    @Schema(description = "标签（逗号分隔，如“风景,自然”）")
    private String tags;

    @Schema(description = "下载次数")
    private Integer downloadCount;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "逻辑删除标记（0：未删除，1：已删除）")
    private Integer isDeleted;

    @Schema(description = "发布者的用户名称")
    private String publisherName;
}
